<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>文章显示页面</title>
<css file='__PUBLIC__/css/base.css' />
<jquery />
<js file='__PUBLIC__/js/iframe.js' />
</head>
<body>
	<div class='now_path'>
		<strong>您现在的位置是:</strong>
		<a href='#'>查看模型</a>
	</div>
	<fieldset class='field_tishi'>
			<legend>操作提示</legend>
			增加字段或者修改字段之后，请记得必须更新缓存
	</fieldset>
        <div class="send1">
            <a href="__CONTROL__/add_show"  class="current button1">添加模型</a>
			<a href="__CONTROL__/reset"  class="current button1">新建模型缓存</a>
        </div>
        <table class="table1">
            <thead>
                <tr>
                    <td width="30">排序</td>
                    <td width="30">mid</td>
                    <td>模型名称</td>
                    <td width="100">主表</td>
                    <td width="100">副表</td>
                    <td width="60">状态</td>
                    <td width="60">系统模型</td>
                    <td width="60">操作</td>
                </tr>
            </thead>
            <tbody>
                <list from="$model" name="$v">
                    <tr>
                        <td><input type='text' size='4' value='{$v.sort}' name='sort[{$v.mid}]' style='height:16px;'/></td>
                        <td>{$v.mid}</td>
                        <td>{$v.title}</td>
                        <td>{$hd.config.db_prefix}{$v.ptable}</td>
                        <td>{$hd.config.db_prefix}{$v.stable}</td>
                        <td><if value="$v.state==1">开启<else>关闭</if></td>
                        <td><if value="$v.issystem==1">是<else>否</if></td>
                        <td width="200" style="font-size:12px;">
                            <a href="__CONTROL__/field_show/mid/{$v.mid}/">字段管理</a> | 
                            <a href="__CONTROL__/model_modify_show/mid/{$v.mid}">修改</a> | 
                            <a href="javascript:;" onclick = 'if(confirm("确认删除吗？,这样将会删除该模型下的所有数据，包括数据表,且不可恢复!")){window.location.href = "__CONTROL__/model_del/mid/{$v.mid}"}'>删除</a>
                        </td>
                    </tr>
                </list>
            </tbody>  
        </table>

    </body>
</html>
